﻿///* 
// * author: www.cnblogs.com/luminji
// * date  : 2011/12/28
// */
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Web.Mvc;
//using Luminji.Exam.Model.Subjects;
//using Microsoft.VisualStudio.TestTools.UnitTesting;
//using Luminji.ExamWeb;
//using Luminji.ExamWeb.Controllers;
//using Luminji.Core.Web.Mockes;
//using Moq;
//using Luminji.ExamWeb.Tests.Web;
//using System.Web;
//using System.Web.Routing;

//namespace Luminji.ExamWeb.Tests.Controllers
//{
//    [TestClass]
//    public class HomeControllerTest
//    {

//        [TestMethod]
//        public void IndexTest()
//        {
//            Mock<ISubjectRepository> mock = new Mock<ISubjectRepository>();
//            mock.Setup(rep => rep.FindAllIntoThree()).Returns(new List<Subject>() { });
//            var controller = new HomeController(mock.Object);
//            controller.SetFakeControllerContext();
//            ViewResult result = controller.Index() as ViewResult;
//            Assert.AreEqual(true, result.ViewBag.SubjectView != null);
//        }

//        //[TestMethod]
//        //public void About()
//        //{
//        //}

//    }
//}
